package com.example.servlet;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRegistration;
import java.util.Set;

public class Model2Intializer implements ServletContainerInitializer {

    @Override
    public void onStartup(Set<Class<?>> set, ServletContext servletContext) throws ServletException {
        System.out.println("---------------");
        ServletRegistration.Dynamic register = servletContext.addServlet("index", new IndexServlet());
        register.addMapping("/boluo");
    }
}
